package com.xbongbong.pro.detailtab.dto.team;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/1/13 9:38
 * @description： 修改团队名称接收实体（隔离模式）
 */
@Setter
@Getter
@ToString
public class TeamDetailRenameDTO extends BaseDTO {

    private static final long serialVersionUID = -6770581040818198626L;

    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.teamDetail.dataId.NotNul}")
    private Long dataId;
    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.teamDetail.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.teamDetail.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.teamDetail.saasMark.DecimalMax}")
    private Integer saasMark;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.teamDetail.businessType.NotNull}")
    private Integer businessType;

    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.teamDetail.formId.NotNull}")
    private Long formId;

    /**
     * 团队名称
     */
    @NotBlank(message = "{dto.msg.teamDetail.name.NotNull}")
    @Size(min=1, max=20, message="{dto.msg.teamDetail.name.size}")
    private String name;

    /**
     * 当前小团队里面负责人的id
     */
    @NotNull(message = "{dto.msg.teamDetail.name.id}")
    private Long id;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 应用id
     */
    private Long appId;
}
